import request from '@/utils/request'

// 查询考勤地址设置列表
export function listAttend_address(query) {
  return request({
    url: '/ehr/attend_address/list',
    method: 'get',
    params: query
  })
}

// 查询考勤地址设置详细
export function getAttend_address(addressId) {
  return request({
    url: '/ehr/attend_address/' + addressId,
    method: 'get'
  })
}

// 新增考勤地址设置
export function addAttend_address(data) {
  return request({
    url: '/ehr/attend_address',
    method: 'post',
    data: data
  })
}

// 修改考勤地址设置
export function updateAttend_address(data) {
  return request({
    url: '/ehr/attend_address',
    method: 'put',
    data: data
  })
}

// 删除考勤地址设置
export function delAttend_address(addressId) {
  return request({
    url: '/ehr/attend_address/' + addressId,
    method: 'delete'
  })
}

// 获取员工考勤地址列表，包括考勤组、所属部门的考勤地址
export function getPersonAttendAddressList(partyId) {
  return request({
    url: '/ehr/attend/getAddressList/' + partyId,
    method: 'get'
  })
}

